package day0512;

public class Test6 {
    public static void main(String[] args) {
        double weight=74.67;
        double height=1.67;
        double bmi=weight/(height*height);
        //判断成绩等级
        if(0<=bmi &&  bmi<18.5){
            System.out.println("偏瘦");
        }else if(60<=bmi &&  bmi<75){
            System.out.println("中等");
        }else if(75<=bmi &&  bmi<85){
            System.out.println("良好");
        }else if(85<=bmi &&  bmi<=100){
            System.out.println("优秀");
        }else{
            System.out.println("成绩不合法");
        }


    }
}
